package com.sbj.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sbj.dto.req.BuyReq;
import com.sbj.dto.req.MemberStoreReq;
import com.sbj.dto.req.TransferGoodReq;
import com.sbj.dto.res.MemberStoreRes;
import com.sbj.dto.res.TransferRationRes;
import com.sbj.entity.MemberStore;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:41
 */
public interface IMemberStoreService extends IService<MemberStore> {

    /**
     * 查询列表
     * @param memberStoreReq
     * @return
     */
    Page<MemberStoreRes> lists(MemberStoreReq memberStoreReq);

    /**
     * 买家订单
     * @param req
     * @return
     */
    Page<MemberStoreRes> buyerOrderLists(MemberStoreReq req);



    /**
     * 上传支付凭证
     * @param req
     */
    void buyOrderPay(BuyReq req);

    /**
     * 查询转拍金额
     * @param id
     * @return
     */
    TransferRationRes getTransferRatio(Integer id);

    /**
     * 会员转拍订单
     * @param req
     */
    void transferGoods(TransferGoodReq req);

    /**
     * 抢购订单详情
     * @param id
     * @return
     */
    MemberStoreRes memberStoreInfo(Integer id);
}
